import React from 'react'
import dva from './images/dva.png'
import mousePos from './hooks/mousePos'

export default function Test() {
  const position = mousePos()
  return (
    <div>
      <img
        src={dva}
        style={{
          width: 100,
          position: 'absolute',
          left: position.left - 50,
          top: position.top + 50,
        }}
        alt='dva'
      />
    </div>
  )
}
